package com.xinzhi.service.impl;

import com.xinzhi.mapper.MyBingBankCardMapper;
import com.xinzhi.pojo.dto.MyBindBankCard;
import com.xinzhi.service.IMyBingBankCardService;
import com.xinzhi.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class MyBingBankCardServiceImpl implements IMyBingBankCardService {
    @Autowired
    private MyBingBankCardMapper myBingBankCardMapper;
    @Override
    public Result getBankCardList(Integer user_Id) {
        List<MyBindBankCard> myBindBankCards = myBingBankCardMapper.selectMyBingBankCardListbyid(user_Id);
        return Result.ok(myBindBankCards);
    }
}
